OPERATION_STARTUP Function
Syntax
Arguments
- type_of_operation
The type of operation. Valid Operation_Types are:
- append records
- convert case of fields
- copy records
- crosstab
- delete duplicate records
- delete records
- export records
- import records
- intersect records
- join tables
- mark duplicate records
- mark records
- post records
- query records
- search and replace
- subtract records
- summarize records
- unmark duplicate records
- unmark records
- update records
- delete/mark/unmark records
- intersect/join/subtract tables
- table_or_set
The name of the table or set for which you are defining the operation.
- Use_genie
Logical. Determines if the genie for the operation should be used. Note that certain operations, such as Convert case of fields, can only be invoked with a genie.
Description
Create a new operation.
Discussion
OPERATION_STARTUP() starts the definition of a new operation by displaying the Create New Operation dialog box. This command performs the same action as if the user clicked on the New button on the Operations tab of the Control Panel. Note : This function is not available in the Alpha Anywhere Runtime. Table_Set_Name is the name of the table or set for which you are defining the operation. If you specify a NULL string, Alpha Anywhere assumes that the operation is for the table or set in the current session. This means that if you want to use the command on a button on a form, and you want to create an operation for the same table or set that the form is based on, you can specify a NULL string for Table_Set_Name. If you specify a non-null string, you must specify the drive, path and extension of the table or set (.dbf or .SET). Use_genie_flag is a logical value that determines if the genie for the operation should be used. Note that certain operations, such as Convert case of fields, can only be invoked with a genie.
This script starts defining an Append operation using a genie. The operation is defined for the current table or set.
operation_startup("append records","",.T.)
This script starts defining an Export operation, without the genie. The table is specified.
table = "c:\mydata\customers.dbf" operation_startup("export records",table,.f.)
Limitations
Desktop applications only.
See Also